import com.chai.config.SpringConfig;
import com.chai.controller.UserController;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext act=new AnnotationConfigApplicationContext(SpringConfig.class);
        //测试是否spring会管理controller类
        System.out.println(act.getBean(UserController.class));
    }
}
